const Koa = require('koa');
const app = new Koa();
app.use((ctx, next) => {
    console.log(ctx.request.url);
    ctx.response.body = 'Hello world! !!';
});
//绑定端口号
app.listen(3000);